import request from "@/utils/request";

export default{
  getclassAll() {
    return request({
      url: "/manage/class/all",
      method: "get",
    });
  },
    getclassList(page,size,searchMap){
        return request({
            url:'/manage/class/list',
            method:'post',
            data:{
                page,
                size,
                searchMap
            }
        })
    },
    add(c){
        return request({
            url:'/manage/class/add',
            method:'post',
            data:c
        })
    },
    getByid(_id) {
        return request({
          url: `/manage/class/find?_id=${_id}`,
          method: "get",
        });
      },
      update(c) {
        return request({
          url: '/manage/class/update',
          method: "post",
          data: c,
        });
      },
      deleteByid(classId) {
        return request({
          url:'/manage/class/delete',
          method: "post",
          data:{
            classId
          }
        });
      },
    
}